package com.nuc.kl.module.basedata.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import org.springframework.stereotype.Controller;

import com.nuc.kl.module.usermanager.entity.User;

@Controller
public class Navigation implements Serializable{
	
	private Long id;
	private String name;
	private String description;//说明
	private Date createTime;//创建时间
	private String state = "open";//状态
	private String url;
	
	private User creator;//创建者
	private Navigation parent;//上级
	private Set<Navigation> children;//下级
	
	
	
	public Navigation(Long id) {
		this.id = id;
	}
	public Navigation() {
	}
	public Navigation(String name, String description, Date createTime,
			String state, User creator, Navigation parent) {
		this.name = name;
		this.description = description;
		this.createTime = createTime;
		this.state = state;
		this.creator = creator;
		this.parent = parent;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public User getCreator() {
		return creator;
	}
	public void setCreator(User creator) {
		this.creator = creator;
	}
	public Navigation getParent() {
		return parent;
	}
	public void setParent(Navigation parent) {
		this.parent = parent;
	}
	public Set<Navigation> getChildren() {
		return children;
	}
	public void setChildren(Set<Navigation> children) {
		this.children = children;
	}
	

	
}
